// 防抖函数
export function antiShake(that,str,e){
  clearTimeout(that.timer)
  that.timer = setTimeout(() => {
    that.setData({ 
      [str]: e.detail.value
    })
  }, 500);  
}